<?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<h2 class="contentheading"><?php echo JText::_('UPLOADFORM_TITLE');?></h2>
<div>
	<form enctype="multipart/form-data" action="index.php" method="POST" onsubmit="return validateForm(this)">
		<input type="hidden" id="option" name="option" value="<?php echo $this->option;?>" />
		<input type="hidden" id="task" name="task" value="uploadRoute" />
		<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
		
		<table id="uploadParams">
			<tr>
				<td><?php echo JText::_('UPLOADFORM_NAME');?></td>
				<td><input type="text" id="routeName" name="routeName"/></td>
			</tr>
			<tr>
				<td><?php echo JText::_('UPLOADFORM_DESCRIPTION');?></td>
				<td><input type="text" id="routeDescrip" name="routeDescrip"/></td>
			</tr>
			<tr>
				<td><?php echo JText::_('UPLOADFORM_CHOOSEGPX');?></td> 
				<td><input name="uploadedfile" type="file" /></td>
			</tr>
			<tr>
				<td><input type="submit" id="submit" value="<?php echo JText::_('UPLOADFORM_BUTTON');?>"/></td>
			</tr>
		</table>
	</form>
</div>
